package cn.usian.controller;

import cn.usian.UserClient;
import cn.usian.pojo.Order;
import cn.usian.service.OrderService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/order")
public class OrderController {
    @Resource
    private OrderService orderService;
    @Resource
    private UserClient userClient;

    @GetMapping
    public List<Order> findAll(){
        List<Order> list= orderService.findAll();
        return list;
    }


}
